﻿/*
 *Copyright (C), 2006-2009, Sunrise Tech. Co., Ltd.
 *SUNRISE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * 
 * Created on 2007-11-29
 */
package com.mindao.app.survey.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mindao.app.common.spring.model.BaseModel;

/**
 * 
 * 功能说明:调查反馈明细
 * 
 * @author liguocai
 */
@Entity
@Table(name = "sv_feedback_item")
public class FeedbackItem extends BaseModel implements Serializable  {

    private Feedback feedback;

	private SurveyItemConf surveyItemConf;
	
	private SurveyItemOptionConf surveyItemOptionConf;
	/**
	 * 填空内容，或者选中某选项后填写的内容
	 */
	private String idea;
 

 

	public final String getIdea() {
		return idea;
	}

	public final void setIdea(String idea) {
		this.idea = idea;
	}
	@ManyToOne(fetch = FetchType.EAGER)  
	@JoinColumn(name = "surveyItemId", nullable = true)
	public final SurveyItemConf getSurveyItemConf() {
		return surveyItemConf;
	}

	public final void setSurveyItemConf(SurveyItemConf surveyItemConf) {
		this.surveyItemConf = surveyItemConf;
	}
	@ManyToOne(fetch = FetchType.EAGER)  
	@JoinColumn(name = "feedbackId", nullable = true)
	public final Feedback getFeedback() {
		return feedback;
	}

	public final void setFeedback(Feedback feedback) {
		this.feedback = feedback;
	}
	
	
	@ManyToOne(fetch = FetchType.EAGER)  
	@JoinColumn(name = "surveyItemOptionId", nullable = true)
	public final SurveyItemOptionConf getSurveyItemOptionConf() {
		return surveyItemOptionConf;
	}

	public final void setSurveyItemOptionConf(SurveyItemOptionConf surveyItemOptionConf) {
		this.surveyItemOptionConf = surveyItemOptionConf;
	}

 
 

}
